package com.neuedu.his.controller;

import com.neuedu.his.common.core.UnCRUDBaseController;
import com.neuedu.his.service.MedicalTechnologyService;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * 项目：      his
 * 类名:       MedicalTechnology
 * 创建时间：  2023/12/21 10：27
 * 描述 :  医技医生
 * 作者 :     张金山
 * QQ :     314649444
 * Site:      https://jshand.gitee.io
 */
@WebServlet("/medical_technology/*")
public class MedicalTechnologyController extends UnCRUDBaseController {
    private MedicalTechnologyService medicalTechnologyService = new MedicalTechnologyService();

    /**
     * 处理检查 申请，前查询患者、检查项目列表
     * @param request
     * @param response
     * @return
     */
    public Map querCheckItems(HttpServletRequest request, HttpServletResponse response){
        return medicalTechnologyService.querCheckItems(request);
    }


    /**
     * 查询检查项目详情
     * @param request
     * @param response
     * @return
     */
    public Map querCheckItemDetail(HttpServletRequest request, HttpServletResponse response){
        return medicalTechnologyService.querCheckItemDetail(request);
    }



    public Map querInspectItemDetail(HttpServletRequest request, HttpServletResponse response){
        return medicalTechnologyService.querInspectItemDetail(request);
    }


    /**
     * 处理检验 申请，前查询患者、检验项目列表
     * @param request
     * @param response
     * @return
     */
    public Map querInspectItems(HttpServletRequest request, HttpServletResponse response){
        return medicalTechnologyService.querInspectItems(request);
    }


    /**
     * 保存检查结果
     * @param request
     * @param response
     * @return
     */
    public boolean saveCheckResult(HttpServletRequest request, HttpServletResponse response){
        return medicalTechnologyService.saveCheckResult(request);
    }


    /**
     * 保存检验结果
     * @param request
     * @param response
     * @return
     */
    public boolean saveInspectResult(HttpServletRequest request, HttpServletResponse response){
        return medicalTechnologyService.saveInspectResult(request);
    }

}
